package cn.kgc.javaweb.dao;

import cn.kgc.javaweb.dto.UserPageDTO;
import cn.kgc.javaweb.entity.Build;
import cn.kgc.javaweb.entity.User;

import java.util.List;

/**
 * @author: mosin
 * @version: v1.0  2022/11/9
 */
public interface BuildDao {

    User findByUserNameAndPassword(String username,String password);

    List<Build> selectPage(UserPageDTO userPageDTO);

    Long selectTotal(UserPageDTO userPageDTO);

    Build selectById(Integer id);

    void update(Build buil,Integer id);

//    Build selectByUserName(String username);

    void add(Build build);

    void delete(String ids);
}
